package com.winit.util;

public class Constants {

//	websocket中保存登陆用户名key
	public final static String WEBSOCKET_SESSION_USERNAME_INDEX = "websocket_session_username_index";
//	websocket中保存tail线程id key
	public final static String WEBSOCKET_SESSION_THREADID_INDEX = "websocket_session_threadid_index";
//	tail线程id前缀
	public final static String TAIL_THREAD_INDEX = "TT";

	public final static String SHELL_PATH = Thread.currentThread().getContextClassLoader().getResource("").getPath().replace("file:","").replace(ConfigUtil.getValue("projectName")+".jar!/","");

	public final static String SSH_LOGIN_USER = ConfigUtil.getValue("ssh_login_user");
	public final static String SSH_KEY_FILE = ConfigUtil.getValue("ssh_key_file");
	public final static String SVN_USER_NAME = ConfigUtil.getValue("svn_user_name");

	//用户角色
	public final static String USER_ROLE_ADMIN="admin";//管理员
	public final static String USER_ROLE_DEV="dev";//开发
	public final static String USER_ROLE_QA="qa";//测试
	public final static String USER_ROLE_OPS="ops";//运维

	//发布计划模版
	public final static String RELEASE_TEMPLATE_IS_IN_USE="0";//可用
	public final static String RELEASE_TEMPLATE_IS_UN_USE="1";//不可用

	//工程发布方式
	public final static String RELEASE_TYPE_WAR="war";//war包发布
	public final static String RELEASE_TYPE_JAR="jar";//jar包发布
	public final static String RELEASE_TYPE_STATIC="static";//静态发布

	//工程环境终端分组
	public final static String PROJECT_ENV_TERMINAL_GTOUP_A="A";
	public final static String PROJECT_ENV_TERMINAL_GTOUP_B="B";
	public final static String PROJECT_ENV_TERMINAL_GTOUP_ALL="ALL";

}
